
import React,{useState} from "react";

import advertStyle from "./Advert.module.css";
export default function Advert() {

    const adverts = [
        {
            id:1,
            title:'广告',
            imageUrl:'https://img1.baidu.com/it/u=1500793427,64593373&fm=26&fmt=auto',
            url:''
        },{
            id:2,
            title:'广告',
            imageUrl:'https://img1.baidu.com/it/u=1500793427,64593373&fm=26&fmt=auto',
            url:''
        }
        

    ]

    return (

        <>
            <div className={advertStyle.advert}>
                {/* <div className={advertStyle.advert_title} >广告</div> */}
                {/* <Divider /> */}
                {
                    adverts.map( item =>                   
                        <div className={advertStyle.advert_item} key={item.id}>
                        
                        <img src={item.imageUrl} />
                        </div>
                    )
                }
            </div>
            
        </>
    )
}